package top.buyibuyi.course.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import top.buyibuyi.course.R;
import top.buyibuyi.course.feign.SelectTeacherCourseClient;
import top.buyibuyi.course.pojo.ChooseCourse;

import java.util.List;

@RestController
@CrossOrigin
@RequestMapping("/teacher")
public class SelectTeacherCourseController {

    @Autowired
    private SelectTeacherCourseClient selectTeacherCourseClient;

    @GetMapping("/selectTeacherCourse/{ajobn}")
    public R selectTeacherCourse(@PathVariable("ajobn") int ajobn){
        R r = selectTeacherCourseClient.selectTeacherCourse(ajobn);
        return r;
    }
}
